         <div class="easyui-layout" data-options="fit:true">
				<table id="cuslivingHabitTable" style="width:100%;height:100%;" class="easyui-datagrid">
					<thead frozen="true">
						<tr>
							<th data-options="field:'cusname',width:60,align:'center',hidden:true">姓名</th>
							<th data-options="field:'organname',width:80,align:'center',hidden:true">机构</th>
							<th data-options="field:'createdate',width:80,align:'center'">时间</th>
							<th data-options="field:'habittype',width:80,align:'center' "formatter='formatLivingHabit'>类型</th>
						</tr>
					</thead>
					<thead>
						<tr>
						<th data-options="field:'eat',width:100,align:'center',colspan:12" >进餐</th>
						<th data-options="field:'eat',width:100,align:'center',colspan:9" >饮水</th>
						<th data-options="field:'eat',width:100,align:'center',colspan:9" >水果</th>
						<th data-options="field:'eat',width:100,align:'center',colspan:9" >零食</th>
						<th data-options="field:'eat',width:100,align:'center',colspan:24" >其他</th>
						</tr>
						<tr>
							<th data-options="field:'zao',width:100,align:'center',colspan:4" >早</th>
							<th data-options="field:'zhong',width:100,align:'center',colspan:4" >午</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:4" >晚</th>
							<th data-options="field:'zao',width:100,align:'center',colspan:3" >早</th>
							<th data-options="field:'zhong',width:100,align:'center',colspan:3" >午</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:3" >晚</th>
							<th data-options="field:'zao',width:100,align:'center',colspan:3" >早</th>
							<th data-options="field:'zhong',width:100,align:'center',colspan:3" >午</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:3" >晚</th>
							<th data-options="field:'zao',width:100,align:'center',colspan:3" >早</th>
							<th data-options="field:'zhong',width:100,align:'center',colspan:3" >午</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:3" >晚</th>
							
							<th data-options="field:'workrest',width:100,align:'center',colspan:3" >作息</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:3" >运动</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:3" >饮酒</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:3" >工作</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:2" >便秘</th>
							<th data-options="field:'wan',width:100,align:'center',colspan:2" >月经</th>
							<th data-options="field:'loss_history',width:200,align:'center',rowspan:2" >减肥史</th>
							<th data-options="field:'weight_min',width:80,align:'center',rowspan:2" >历史最低体重</th>
							<th data-options="field:'weight_max',width:80,align:'center',rowspan:2" >历史最高体重</th>
							<th data-options="field:'weight_almost',width:100,align:'center',rowspan:2" >持续时间最长体重</th>
							<th data-options="field:'fat_cause',width:50,align:'center',rowspan:2" >发胖原因</th>
							<th data-options="field:'healthycondition',width:50,align:'center',rowspan:2" >健康状况</th>
							<th data-options="field:'is_insomnia',width:50,align:'center',rowspan:2" >失眠</th>
							<th data-options="field:'habit',width:200,align:'center',rowspan:2" >爱好</th>
							<!--<th data-options="field:'snacks',width:50,align:'center',rowspan:2" >其他</th>
							<th data-options="field:'snacks',width:50,align:'center',rowspan:3" >零食</th>
							<th data-options="field:'fruits',width:50,align:'center',rowspan:3">水果</th>
							<th data-options="field:'greetings',width:50,align:'center',rowspan:3" >应酬</th>
							<th data-options="field:'drink',width:50,align:'center',rowspan:3" >饮酒</th>
							<th data-options="field:'sports',width:50,align:'center',rowspan:3" >运动</th>
							<th data-options="field:'astriction',width:50,align:'center',rowspan:3" >便秘</th>
							<th data-options="field:'mood',width:50,align:'center',rowspan:3">情绪</th>
							<th data-options="field:'menstrualperiod',width:50,align:'center',rowspan:3" >生理期</th>
							<th data-options="field:'ailment',width:50,align:'center',rowspan:3" >疾病</th>
							<th data-options="field:'otheradvice',width:100,align:'center',rowspan:3">建议</th> -->
						</tr>
						<tr>
							<th data-options="field:'breakfasttime',width:80,align:'center'" >时间</th>
							<th data-options="field:'breakfast',width:200,align:'center'" >内容</th>
							<th data-options="field:'breakfastamount',width:40,align:'center'" >量</th>
							<th data-options="field:'breakfastspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'lunchtime',width:80,align:'center'" >时间</th>
							<th data-options="field:'lunch',width:200,align:'center'" >内容</th>
							<th data-options="field:'lunchamount',width:40,align:'center'" >量</th>
							<th data-options="field:'lunchspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'dinnertime',width:80,align:'center'" >时间</th>
							<th data-options="field:'dinner',width:200,align:'center'" >内容</th>
							<th data-options="field:'dinneramount',width:40,align:'center'" >量</th>
							<th data-options="field:'dinnerspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'breakfastwater',width:200,align:'center'" >内容</th>
							<th data-options="field:'breakfastwatermount',width:40,align:'center'" >量</th>
							<th data-options="field:'breakfastwaterspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'lunchwater',width:200,align:'center'" >内容</th>
							<th data-options="field:'lunchwatermount',width:40,align:'center'" >量</th>
							<th data-options="field:'lunchwaterspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'dinnerwater',width:200,align:'center'" >内容</th>
							<th data-options="field:'dinnerwatermount',width:40,align:'center'" >量</th>
							<th data-options="field:'dinnerwaterspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'breakfastfruit',width:200,align:'center'" >内容</th>
							<th data-options="field:'breakfastfruitmount',width:40,align:'center'" >量</th>
							<th data-options="field:'breakfastfruitspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'lunchfruit',width:200,align:'center'" >内容</th>
							<th data-options="field:'lunchfruitmount',width:40,align:'center'" >量</th>
							<th data-options="field:'lunchfruitspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'dinnerfruit',width:200,align:'center'" >内容</th>
							<th data-options="field:'dinnerfruitmount',width:40,align:'center'" >量</th>
							<th data-options="field:'dinnerfruitspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'breakfastsnacks',width:200,align:'center'" >内容</th>
							<th data-options="field:'breakfastsnacksmount',width:40,align:'center'" >量</th>
							<th data-options="field:'breakfastsnacksspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'lunchsnacks',width:200,align:'center'" >内容</th>
							<th data-options="field:'lunchnacksmount',width:40,align:'center'" >量</th>
							<th data-options="field:'lunchsnacksspeed',width:40,align:'center'" >速度</th>
							
							<th data-options="field:'dinnersnacks',width:200,align:'center'" >内容</th>
							<th data-options="field:'dinnersnacksmount',width:40,align:'center'" >量</th>
							<th data-options="field:'dinnersnacksspeed',width:40,align:'center'" >速度</th>
							
							
						
							<th data-options="field:'morning',width:50,align:'center'" >早起</th>
							<th data-options="field:'noonbreak',width:50,align:'center'" >午休</th>
							<th data-options="field:'nighttime',width:50,align:'center'" >晚休</th>
							
							<th data-options="field:'sportway',width:50,align:'center'" >方式</th>
							<th data-options="field:'sporttime',width:50,align:'center'" >时间</th>
							<th data-options="field:'sportwater',width:60,align:'center'" >运动后饮水</th>
							
							<th data-options="field:'drinking',width:200,align:'center'" >类型</th>
							<th data-options="field:'drinkingnumber',width:50,align:'center'" >次数</th>
							<th data-options="field:'drinkingmount',width:50,align:'center'" >量</th>
							
							<th data-options="field:'work',width:200,align:'center'" >类型</th>
							<th data-options="field:'worktime',width:50,align:'center'" >时间</th>
							<th data-options="field:'workcondition',width:50,align:'center'" >环境</th>
							
							<th data-options="field:'is_constipation',width:50,align:'center'" >有无便秘</th>
							<th data-options="field:'constipation_treatment',width:100,align:'center'" >便秘治疗方法</th>
														
							<th data-options="field:'menstruatime',width:80,align:'center'" >上次经期时间</th>
							<th data-options="field:'menstrual',width:80,align:'center'" >月经情况</th>
							
							
						</tr>
					</thead>
				</table>
				<div id="livingHabit_tb" >
					日期：
					<input id="livingHabit_startTime" value='${startTime !}' class="easyui-datebox theme-textbox-radius"  data-options="editable: false"/>~
					<input id="livingHabit_endTime" value='${date(),dateFormat="yyyy-MM-dd"}' class="easyui-datebox theme-textbox-radius" data-options="editable: false"/>
				</div>
	    	</div>  
			<script type="text/javascript">
			$(document).ready(function () {
				//加载数据表格
				loadLivingHabitTable();
				$('#livingHabit_startTime').datebox({
					onSelect: function(date){
						loadLivingHabitTable();
					}
				});
				$('#livingHabit_endTime').datebox({
					onSelect: function(date){
						loadLivingHabitTable();
					}
				});
			});
			
			function  loadLivingHabitTable()
			{	
				var startTime = $("#livingHabit_startTime").val();
				var endTime = $("#livingHabit_endTime").val();
				$('#cuslivingHabitTable').datagrid({
					singleSelect: true,
					toolbar: '#livingHabit_tb',
					rownumbers: true, //显示序号
					url: "${cxt!}/customerInfoStatistic/LookCustomerLivingHabitStatistic",
					queryParams: {
						'customerIds': '${customerIds! }',
						'startTime': startTime,
						'endTime': endTime
					},
					method: 'post'
				})
			}
			function formatLivingHabit(value,row)
			{
				if(value!=null)
				{
					if(value==1){return  "日常";}
					if(value==2){return  "减肥史";}
				}
			}
			</script>
			
